Optimal. Leaf size=92 \[ \frac{2 \cos ^{\frac{3}{2}}(c+d x) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{5 a^2 d (e \cos (c+d x))^{3/2}}+\frac{4 i \cos ^2(c+d x)}{5 d \left (a^2+i a^2 \tan (c+d x)\right ) (e \cos (c+d x))^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.15422, antiderivative size = 92, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {3515, 3500, 3771, 2639} \[ \frac{2 \cos ^{\frac{3}{2}}(c+d x) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{5 a^2 d (e \cos (c+d x))^{3/2}}+\frac{4 i \cos ^2(c+d x)}{5 d \left (a^2+i a^2 \tan (c+d x)\right ) (e \cos (c+d x))^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3515
Rule 3500
Rule 3771
Rule 2639
Rubi steps
\begin{align*} \int \frac{1}{(e \cos (c+d x))^{3/2} (a+i a \tan (c+d x))^2} \, dx &=\frac{\int \frac{(e \sec (c+d x))^{3/2}}{(a+i a \tan (c+d x))^2} \, dx}{(e \cos (c+d x))^{3/2} (e \sec (c+d x))^{3/2}}\\ &=\frac{4 i \cos ^2(c+d x)}{5 d (e \cos (c+d x))^{3/2} \left (a^2+i a^2 \tan (c+d x)\right )}+\frac{e^2 \int \frac{1}{\sqrt{e \sec (c+d x)}} \, dx}{5 a^2 (e \cos (c+d x))^{3/2} (e \sec (c+d x))^{3/2}}\\ &=\frac{4 i \cos ^2(c+d x)}{5 d (e \cos (c+d x))^{3/2} \left (a^2+i a^2 \tan (c+d x)\right )}+\frac{\cos ^{\frac{3}{2}}(c+d x) \int \sqrt{\cos (c+d x)} \, dx}{5 a^2 (e \cos (c+d x))^{3/2}}\\ &=\frac{2 \cos ^{\frac{3}{2}}(c+d x) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{5 a^2 d (e \cos (c+d x))^{3/2}}+\frac{4 i \cos ^2(c+d x)}{5 d (e \cos (c+d x))^{3/2} \left (a^2+i a^2 \tan (c+d x)\right )}\\ \end{align*}
Mathematica [B] time = 0.675349, size = 244, normalized size = 2.65 \[ \frac{(\sin (c+d x)+i \cos (c+d x)) \left (i \sin (2 (c+d x))+3 \cos (2 (c+d x))-2 \sqrt{\sin (c+d x)-i \cos (c+d x)+1} \sqrt{\sin (c+d x)+i \sin (2 (c+d x))-i \cos (c+d x)+\cos (2 (c+d x))} F\left (\left .\sin ^{-1}\left (\sqrt{\sin (c+d x)-i \cos (c+d x)}\right )\right |-1\right )+2 \sqrt{\sin (c+d x)-i \cos (c+d x)+1} \sqrt{\sin (c+d x)+i \sin (2 (c+d x))-i \cos (c+d x)+\cos (2 (c+d x))} E\left (\left .\sin ^{-1}\left (\sqrt{\sin (c+d x)-i \cos (c+d x)}\right )\right |-1\right )+3\right )}{5 a^2 d e \sqrt{e \cos (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 2.392, size = 207, normalized size = 2.3 \begin{align*} -{\frac{2}{5\,{a}^{2}ed} \left ( 16\,i \left ( \sin \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{7}-16\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{6}\cos \left ( 1/2\,dx+c/2 \right ) -24\,i \left ( \sin \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{5}+16\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{4}\cos \left ( 1/2\,dx+c/2 \right ) +12\,i \left ( \sin \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{3}-{\it EllipticE} \left ( \cos \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) ,\sqrt{2} \right ) \sqrt{2\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1}\sqrt{ \left ( \sin \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}}-4\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}\cos \left ( 1/2\,dx+c/2 \right ) -2\,i\sin \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) \left ( \sin \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{-1}{\frac{1}{\sqrt{-2\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}e+e}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: RuntimeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{{\left (5 \, a^{2} d e^{2} e^{\left (2 i \, d x + 2 i \, c\right )}{\rm integral}\left (-\frac{2 i \, \sqrt{\frac{1}{2}} \sqrt{e e^{\left (2 i \, d x + 2 i \, c\right )} + e} e^{\left (\frac{1}{2} i \, d x + \frac{1}{2} i \, c\right )}}{5 \,{\left (a^{2} d e^{2} e^{\left (2 i \, d x + 2 i \, c\right )} + a^{2} d e^{2}\right )}}, x\right ) + \sqrt{\frac{1}{2}} \sqrt{e e^{\left (2 i \, d x + 2 i \, c\right )} + e}{\left (4 i \, e^{\left (2 i \, d x + 2 i \, c\right )} + 2 i\right )} e^{\left (-\frac{1}{2} i \, d x - \frac{1}{2} i \, c\right )}\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}}{5 \, a^{2} d e^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: AttributeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\left (e \cos \left (d x + c\right )\right )^{\frac{3}{2}}{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]